from django.views.decorators.http import require_http_methods
from feedback.models import Feedback
from api.views import render

# Create your views here.
@require_http_methods(["POST"])
def feedbackcreate(request):
    '''
        product create
    '''
    mobile_no = request.POST.get('mobile_no')
    app_version = request.POST.get('app_version')
    app_user = request.POST.get('app_user')
    platform = request.POST.get('platform')
    content = request.POST.get('content')
    os_info = request.POST.get('os_info')
    
    f = Feedback(mobile_no=mobile_no, content=content, platform=platform, os_info=os_info, app_version=app_version,app_user=app_user )
    f.save();

    return render({ "feedback": f })